import request from '@/utils/request'

// 查询假期基础系数列表
export function listVacation(query) {
  return request({
    url: '/sl/vacation/list',
    method: 'get',
    params: query
  })
}

// 查询假期基础系数详细
export function getVacation(vacationId) {
  return request({
    url: '/sl/vacation/' + vacationId,
    method: 'get'
  })
}

// 新增假期基础系数
export function addVacation(data) {
  return request({
    url: '/sl/vacation',
    method: 'post',
    data: data
  })
}

// 修改假期基础系数
export function updateVacation(data) {
  return request({
    url: '/sl/vacation',
    method: 'put',
    data: data
  })
}

// 删除假期基础系数
export function delVacation(vacationId) {
  return request({
    url: '/sl/vacation/' + vacationId,
    method: 'delete'
  })
}
